{template header}
<div id="mainFrame" class="mainFrame">
	<div class="order-tab-bar">
    	<div class="item{if !$status} on{/if}"><a href="/?m=$G[m]&c=$G[c]">全部订单</a></div>
        <div class="item{if $status=='-1'} on{/if}"><a href="/?m=$G[m]&c=$G[c]&status=-1">待付款</a></div>
        <div class="item{if $status=='-2'} on{/if}"><a href="/?m=$G[m]&c=$G[c]&status=-2">待发货</a></div>
        <div class="item{if $status=='-3'} on{/if}"><a href="/?m=$G[m]&c=$G[c]&status=-3">待收货</a></div>
        <div class="item{if $status=='-4'} on{/if}"><a href="/?m=$G[m]&c=$G[c]&status=-4">待评价</a></div>
    </div>
    {if $orderlist}
    <table cellpadding="0" cellspacing="0" width="100%" class="order-table-header">
    	<tr>
        	<td>宝贝</td>
            <td width="80">单价(元)</td>
            <td width="60">数量</td>
            <td width="100">商品操作</td>
            <td width="80">实付金额</td>
            <td width="80">交易状态</td>
            <td width="80">商品操作</td>
        </tr>
    </table>
    <div class="order-tbar">
    	<div class="f-right">下一页</div>
        <input type="checkbox"> 全部确认收货
    </div>
    {loop $orderlist $order}
    <div class="order-item">
    	<table cellpadding="0" cellspacing="0" width="100%" class="table-header">
        	<tr>
            	<td>
                	<input type="checkbox"> <strong>2016-07-21</strong>
                    订单号: 2065436985556738
                </td>
                <td width="160">大师兄专卖店</td>
                <td width="100">联系卖家</td>
                <td width="240" class="t-right">删除订单</td>
            </tr>
        </table>
        <table cellpadding="0" cellspacing="0" width="100%" class="table-goods">
        	{loop $orderlist[goods] $goods_id $goods}
        	<tr>
            	<td>
                	<div class="g-pic"><img src="{echo image($goods[image])}"></div>
                    <div class="g-con">
                    	<h3>{$goods[goods_name]}</h3>
                        <div class="attr">颜色:灰色  尺码:XXXL</div>
                    </div>
                </td>
                <td width="80">
                	<div class="price"><s>{echo @number_format($goods[price],2)}</s></div>
                    <div class="discount">{echo @number_format($goods[price],2)}</div>
                </td>
                <td width="60" class="td-number">{$goods[goods_number]}</td>
                <td width="100">申请售后</td>
                <td width="80">
                	<div class="amount">{echo @number_format($goods[price],2)}</div>
                    <div class="freight">(含运费:0)</div>
                </td>
                <td width="80">交易成功</td>
                <td width="80" class="td-right"><a href="" class="btn">确认收货</a></td>
            </tr>
            {/loop}
        </table>
    </div>
    {/loop}
    {else}
    <div class="noaccess">你还没有订单，<a href="/?m=market">马上去购物</a></div>
    {/if}
</div>
{template footer}